patches/gst-plugins-good-08-sunaudiomixer.diff
author yippi
Tue, 22 Jun 2010 03:07:56 +0000
changeset 18153 2f222bb8f8c5
child 18242 54c28d319822
permissions -rw-r--r--
2010-06-21 Brian Cameron <[email protected]> * base-specs/vte.spec: Bump to 0.24.2. * patches/gnome-terminal-02-encoding.diff: Removed upstream. * base-specs/gnome-terminal.spec: Bump to 2.30.2. * base-specs/gobject-introspection.spec: Bump to 0.6.14. * base-specs/gst-plugins-good.spec: Bump to 0.10.23. * patches/gst-plugins-good-05-ossv4.diff: Removed upstream. * patches/gst-plugins-good-06-tvtime.diff: Reworked.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
18153
2f222bb8f8c5 2010-06-21 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     1
diff -ur gst-plugins-good-0.10.16-old/sys/sunaudio/gstsunaudiomixer.c gst-plugins-good-0.10.16/sys/sunaudio/gstsunaudiomixer.c
2f222bb8f8c5 2010-06-21 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     2
--- gst-plugins-good-0.10.16-old/sys/sunaudio/gstsunaudiomixer.c	2009-08-11 06:15:55.000000000 +0800
2f222bb8f8c5 2010-06-21 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     3
+++ gst-plugins-good-0.10.16/sys/sunaudio/gstsunaudiomixer.c	2009-09-03 15:17:21.106331729 +0800
2f222bb8f8c5 2010-06-21 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     4
@@ -79,6 +79,13 @@
2f222bb8f8c5 2010-06-21 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     5
     case GST_STATE_CHANGE_NULL_TO_READY:
2f222bb8f8c5 2010-06-21 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     6
       if (!this->mixer) {
2f222bb8f8c5 2010-06-21 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     7
         const char *audiodev;
2f222bb8f8c5 2010-06-21 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     8
+	const char *utaudiodev;
2f222bb8f8c5 2010-06-21 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     9
+
2f222bb8f8c5 2010-06-21 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    10
+	utaudiodev = g_getenv ("UTAUDIODEV");
2f222bb8f8c5 2010-06-21 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    11
+	if (utaudiodev == NULL) {
2f222bb8f8c5 2010-06-21 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    12
+		//We are not on a Sun Ray, use OSS v4
2f222bb8f8c5 2010-06-21 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    13
+		return GST_STATE_CHANGE_FAILURE;
2f222bb8f8c5 2010-06-21 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    14
+	}
2f222bb8f8c5 2010-06-21 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    15
 
2f222bb8f8c5 2010-06-21 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    16
         audiodev = g_getenv ("AUDIODEV");
2f222bb8f8c5 2010-06-21 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    17
         if (audiodev == NULL) {