Maarten Lankhorst : winegstreamer: Fix playing .flv and realmedia files.
Alexandre Julliard
julliard at winehq.org
Thu Nov 11 12:05:49 CST 2010
Module: wine
Branch: master
Commit: 97393cd557e6d5154029d916943a5ec7b515756e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=97393cd557e6d5154029d916943a5ec7b515756e
Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date: Wed Nov 10 14:41:38 2010 +0100
winegstreamer: Fix playing .flv and realmedia files.
---
dlls/winegstreamer/gstdemux.c | 11 +----------
1 files changed, 1 insertions(+), 10 deletions(-)
diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c
index abca29c..94903c1 100644
--- a/dlls/winegstreamer/gstdemux.c
+++ b/dlls/winegstreamer/gstdemux.c
@@ -757,12 +757,6 @@ static void init_new_decoded_pad(GstElement *bin, GstPad *pad, gboolean last, GS
static void existing_new_pad(GstElement *bin, GstPad *pad, gboolean last, GSTImpl *This) {
int x;
- GstCaps *caps;
- GstStructure *arg;
- const char *typename, *ownname;
- caps = gst_pad_get_caps_reffed(pad);
- arg = gst_caps_get_structure(caps, 0);
- typename = gst_structure_get_name(arg);
if (gst_pad_is_linked(pad))
return;
@@ -777,10 +771,7 @@ static void existing_new_pad(GstElement *bin, GstPad *pad, gboolean last, GSTImp
for (x = 0; x < This->cStreams; ++x) {
GSTOutPin *pin = This->ppPins[x];
if (!pin->their_src) {
- caps = gst_pad_get_caps_reffed(pin->my_sink);
- arg = gst_caps_get_structure(caps, 0);
- ownname = gst_structure_get_name(arg);
- if (!strcmp(typename, ownname) && gst_pad_link(pad, pin->my_sink) >= 0) {
+ if (gst_pad_link(pad, pin->my_sink) >= 0) {
pin->their_src = pad;
gst_segment_init(pin->segment, GST_FORMAT_TIME);
gst_object_ref(pin->their_src);
More information about the wine-cvs
mailing list