summaryrefslogtreecommitdiffstats
path: root/meta/recipes-sato/owl-video-widget/libowl-av/gst_change_state.patch
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2012-08-10 15:47:00 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-17 18:04:20 +0100
commita102793b1583d9d385a8f01ae89f2235531e6c83 (patch)
treedda8d25a8eec8ccceec887ba6ec95f77d9909eb2 /meta/recipes-sato/owl-video-widget/libowl-av/gst_change_state.patch
parent75bb9025ea7307dedc821875cd0cb1410cb3b420 (diff)
downloadpoky-a102793b1583d9d385a8f01ae89f2235531e6c83.tar.gz
libowl-av: patches merged upstream, bump srcrev
(From OE-Core rev: 5b0d8cb8463da423035484f42659926b472c53b3) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-sato/owl-video-widget/libowl-av/gst_change_state.patch')
-rw-r--r--meta/recipes-sato/owl-video-widget/libowl-av/gst_change_state.patch42
1 files changed, 0 insertions, 42 deletions
diff --git a/meta/recipes-sato/owl-video-widget/libowl-av/gst_change_state.patch b/meta/recipes-sato/owl-video-widget/libowl-av/gst_change_state.patch
deleted file mode 100644
index 5bc279a019..0000000000
--- a/meta/recipes-sato/owl-video-widget/libowl-av/gst_change_state.patch
+++ /dev/null
@@ -1,42 +0,0 @@
1Fix music player crash if adding unknown type files.
2
3Using bus message to call function flush_head/feed_head in main thread
4to protect private data operation.
5
6A better fix may be to listen to bus message "CODEC_NOT_FOUND" and
7"MISSING_PLUGIN" directly to avoid hooking into "unknown-type" signal.
8We will revisit it in next period.
9
10Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
11
12Upstream-Status: Pending
13
14diff -ruN libowl-av-orig/libowl-av/owl-tag-reader.c libowl-av/libowl-av/owl-tag-reader.c
15--- libowl-av-orig/libowl-av/owl-tag-reader.c 2010-10-12 14:30:26.000000000 +0800
16+++ libowl-av/libowl-av/owl-tag-reader.c 2010-10-12 14:32:39.000000000 +0800
17@@ -300,13 +300,23 @@
18 GstCaps *caps,
19 OwlTagReader *tag_reader)
20 {
21+ GstMessage *message;
22+ GstBus *bus;
23+
24 tag_reader->priv->current_error =
25 g_error_new (OWL_TAG_READER_ERROR,
26 OWL_TAG_READER_ERROR_UNKNOWN_TYPE,
27 "Unknown type");
28
29- flush_head (tag_reader);
30- feed_head (tag_reader);
31+ /**
32+ * Post a message to the bus, as we are in another thread here.
33+ **/
34+ message = gst_message_new_error(GST_OBJECT (decodebin),
35+ tag_reader->priv->current_error, NULL);
36+
37+ bus = gst_pipeline_get_bus (GST_PIPELINE (tag_reader->priv->pipeline));
38+ gst_bus_post (bus, message);
39+ gst_object_unref (GST_OBJECT (bus));
40 }
41
42 /**